<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<!-- <script src='/Public/jquery.min.js'></script> -->
  <script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
  
	<script src='/Public/foundation/js/foundation.min.js'></script>
	<link rel="stylesheet" href="/Public/foundation/css/foundation.min.css">
  <script src='/Public/jquery.cityselect.js'></script>
  <script src='/Public/jquery.datetimepicker.full.js'></script>
  <link rel="stylesheet" href="/Public/jquery.datetimepicker.css">
   <script src="http://cdn.static.runoob.com/libs/foundation/5.5.3/js/vendor/modernizr.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<nav class="top-bar" data-topbar>
  <ul class="title-area">
    <li class="name">
      <h1><a href="#">后台管理</a></h1>
    </li>
  </ul>

  <section class="top-bar-section">
    <ul class="right">
      <li><a href=""><?php echo (session('name')); ?></a></li>
      <li><a href="<?php echo U('Login/doLogout');?>">退出</a></li>
    </ul>
  </section>
</nav>

<div class="small-2 columns">
<ul class="side-nav">
 <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U($vo['url']);?>" target='<?php echo ($vo["target"]?"_blank":null); ?>'><?php echo ($vo["mname"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
</div>
<div class="small-10 columns">

    <div class="row">
        <div style="margin-left: 40%">
            <buttom class="button tiny" onclick="stu()">考试成绩</buttom>
            <buttom class="button tiny" onclick="poi()">日常扣分</buttom>
        </div>
    </div>
    <center>
        <table id="stuSea" style="display:none;margin-top: 5%">
            <?php if($ex != '暂无考试成绩'): if(is_array($ex)): $i = 0; $__LIST__ = $ex;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ex): $mod = ($i % 2 );++$i;?><tr>
                        <td><?php echo ($ex["exam_name"]); ?></td>
                        <td><?php echo ($ex["score"]); ?></td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            <?php else: ?>
                <tr>
                    <td>暂无考试成绩</td>
                </tr><?php endif; ?>
        </table>
        <table id="pointSea" style="display:none;margin-top: 5%">
            <?php if($po != '暂无扣分记录'): if(is_array($po)): $i = 0; $__LIST__ = $po;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$po): $mod = ($i % 2 );++$i;?><tr>
                        <td><?php echo ($po["points_time"]); ?></td>
                        <td><?php echo ($po["rule_name"]); ?></td>
                        <td><?php echo ($po["score"]); ?></td>
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                <?php else: ?>
                <tr>
                    <td>暂无扣分记录</td>
                </tr><?php endif; ?>
        </table>
    </center>
    <script>
        function stu() {
            $('#stuSea').show();
            $('#pointSea').hide();
        }
        function poi() {
            $('#pointSea').show();
            $('#stuSea').hide();
        }
    </script>

</div>

</body>
</html>